/**
 * 用户相关API类型定义
 */

export interface UserProfile {
  id: string;
  username: string;
  nickname: string;
  email: string;
  phone: string;
  avatar: string;
  status: 'active' | 'inactive' | 'banned';
  createdAt: string;
  updatedAt: string;
}

export interface UpdateUserProfileParams {
  nickname?: string;
  email?: string;
  phone?: string;
  avatar?: string;
}

export interface UserLoginParams {
  username: string;
  password: string;
}

export interface UserRegisterParams {
  username: string;
  password: string;
  email: string;
  phone?: string;
}

export interface UserLoginResponse {
  token: string;
  user: UserProfile;
  expiresIn: number;
}
